﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UnitInsert.aspx.cs" Inherits="Pages_UnitInsert" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:Label ID="Label1" runat="server" Text="Nome:"></asp:Label>
&nbsp;<asp:TextBox ID="txbName" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="txbName" ErrorMessage="Digite um nome">*</asp:RequiredFieldValidator>
        <br />
        <br />
        <asp:Label ID="Label2" runat="server" Text="Estado : "></asp:Label>
        <asp:DropDownList ID="ddlState" runat="server" AutoPostBack="True" 
            onselectedindexchanged="ddlState_SelectedIndexChanged">
        </asp:DropDownList>
        <br />
        <br />
        <asp:Label ID="Label3" runat="server" Text="Cidade : "></asp:Label>
        <asp:DropDownList ID="ddlCity" runat="server" AutoPostBack="True" 
            onselectedindexchanged="ddlCity_SelectedIndexChanged">
        </asp:DropDownList>
        <br />
        <br />
        <asp:Label ID="Label4" runat="server" Text="Lugar : "></asp:Label>
        <asp:DropDownList ID="ddlPlace" runat="server">
        </asp:DropDownList>
        <br />
        <br />
        <asp:Button ID="btnInsert" runat="server" onclick="btnInsert_Click" 
            Text="Cadastrar" />
&nbsp;
        <asp:HyperLink ID="hlUnitInsert" runat="server" NavigateUrl="UnitMain.aspx">Lista de Unidades</asp:HyperLink>
    
        <br />
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
    
    </div>
    </form>
    <p>
&nbsp;</p>
</body>
</html>
